package com.wanmait.gohome.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.mapper.AutomatchMapper;
import com.wanmait.gohome.pojo.Automatch;
import com.wanmait.gohome.pojo.Information;
import com.wanmait.gohome.service.AutomatchService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class AutomatchServiceImpl implements AutomatchService {

    @Resource
    private AutomatchMapper automatchMapper;
    @Override
    public void insert(Automatch object) {

    }

    @Override
    public void update(Integer id) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public List<Automatch> findAll() {
        return null;
    }

    @Override
    public Automatch findById(Integer id) {
        return null;
    }

    @Override
    public PageInfo<Automatch> findPage() {
        return null;
    }

    @Override
    public List<Automatch> findAll(Automatch object) {
        return null;
    }

    @Override
    public PageInfo<Automatch> findPage(Automatch Object) {
        return null;
    }

    @Override
    public void insertAutomatch(Integer informationId,Integer id) {
        automatchMapper.insertAutomatch(informationId,id);
    }

    /**
     *
     * @param informationId 查找相似
     * @return
     */
    @Override
    public List<Automatch> findByInformationId(Integer informationId) {
        return automatchMapper.findByInformationId(informationId);
    }
}
